﻿@model canthovieclam.BL.Models.EmployerModel
@using canthovieclam.Helper;
@{
    ViewBag.Title = "Employer";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm("Create", "Employer", FormMethod.Post)) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>CompanyModel</legend>  

        <div class="editor-label">
            @Html.LabelFor(model => model.EmployerName)
            @Html.ValidationMessageFor(model => model.EmployerName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EmployerName)
            @Html.ValidationMessageFor(model => model.EmployerName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EmployerDescription)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EmployerDescription)
            @Html.ValidationMessageFor(model => model.EmployerDescription)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Website)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Website)
            @Html.ValidationMessageFor(model => model.Website)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Phone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Phone)
            @Html.ValidationMessageFor(model => model.Phone)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Fax)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Fax)
            @Html.ValidationMessageFor(model => model.Fax)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.State)
        </div>
        <div class="editor-field">
            @Html.EmployerState("CompanyState")
            @Html.ValidationMessageFor(model => model.State)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
